package htdi.jfinal.helloworld.config;

import com.jfinal.config.*;
import com.jfinal.server.undertow.UndertowServer;
import com.jfinal.template.Engine;
import htdi.jfinal.helloworld.controller.HelloWorldController;

public class ProjectConfig extends JFinalConfig {

	public static void main(String[] args) {
        UndertowServer.start(ProjectConfig.class);
    }
	
	public void configRoute(Routes me) {
		me.add("/", HelloWorldController.class);
	}
	
	public void configEngine(Engine me) {
		me.setBaseTemplatePath("webapp").setToClassPathSourceFactory();
	}
	
	public void configConstant(Constants me) {}
	public void configPlugin(Plugins me) {}
	public void configInterceptor(Interceptors me) {}
	public void configHandler(Handlers me) {}
}
